//**********模型***********/;
import request from '@/utils/request.js';

/**
 * 保存
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * data 参数 
 *  code:'', //模型编码 	类型:string 非必填
 *  datasourceId:'', //数据源ID 	类型:integer 非必填
 *  description:'', //模型描述 	类型:string 非必填
 *  httpServiceId:'', //http服务ID 	类型:integer 非必填
 *  name:'', //模型名 	类型:string 非必填
 *  supportProcess:'', //支持流程 	类型:boolean 非必填
 *  supportTree:'', //支持树状结构 	类型:boolean 非必填
 *  type:'', //模型类型 	类型:string 非必填
 *  viewName:'', //视图名 	类型:string 非必填
 * @returns
 * ********
 */
export function postHmmodel(data={}, config={}){
  return request({
    method: 'post',
    data,
    url: `/api/hmmodel`,
    ...config,
  }) 
}

/**
 * 修改
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * data 参数 
 *  datasourceId:'', //数据源ID 	类型:integer 非必填
 *  description:'', //模型描述 	类型:string 非必填
 *  httpServiceId:'', //http服务ID 	类型:integer 非必填
 *  id:'', //唯一键 	类型:integer 非必填
 *  name:'', //模型名 	类型:string 非必填
 *  viewName:'', //视图名 	类型:string 非必填
 * @returns
 * ********
 */
export function putHmmodel(data={}, config={}){
  return request({
    method: 'put',
    data,
    url: `/api/hmmodel`,
    ...config,
  }) 
}

/**
 * 删除
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * data 参数 // 类型 array
 * []integer
 * @returns
 * ********
 */
export function deleteHmmodel(data=[], config={}){
  return request({
    method: 'delete',
    data,
    url: `/api/hmmodel`,
    ...config,
  }) 
}

/**
 * 新增模型表数据
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * data 参数 
 *  data:'', // 	类型:object 非必填
 *  pageId:'', // 	类型:integer 非必填
 * @returns
 * ********
 */
export function postHmmodelDataAdd(data={}, config={}){
  return request({
    method: 'post',
    data,
    url: `/api/hmmodel/data/add`,
    ...config,
  }) 
}

/**
 * 删除模型表数据
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * data 参数 
 *  dataId:'', // 	类型:integer 非必填
 *  pageId:'', // 	类型:integer 非必填
 * @returns
 * ********
 */
export function deleteHmmodelDataDelete(data={}, config={}){
  return request({
    method: 'delete',
    data,
    url: `/api/hmmodel/data/delete`,
    ...config,
  }) 
}

/**
 * 修改模型表数据
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * data 参数 
 *  data:'', // 	类型:object 非必填
 *  pageId:'', // 	类型:integer 非必填
 * @returns
 * ********
 */
export function putHmmodelDataEdit(data={}, config={}){
  return request({
    method: 'put',
    data,
    url: `/api/hmmodel/data/edit`,
    ...config,
  }) 
}

/**
 * 获取模型表数据
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * params 参数 
 * pageId:'', //pageId 必填
 * id:'', //id 必填
 * @returns
 * ********
 */
export function getHmmodelDataGet(params={}, config={}){
  return request({
    method: 'get',
    params,
    url: `/api/hmmodel/data/get`,
    ...config,
  }) 
}

/**
 * 获取模型表数据
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * params 参数 
 * pageKey:'', //pageKey 必填
 * id:'', //id 必填
 * @returns
 * ********
 */
export function getHmmodelDataGetKey(params={}, config={}){
  return request({
    method: 'get',
    params,
    url: `/api/hmmodel/data/get/key`,
    ...config,
  }) 
}

/**
 * 模型数据列表
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * data 参数 
 *  orderRules:'', // 	类型:array 非必填
 *  pageId:'', // 	类型:integer 非必填
 *  pageNo:'', // 	类型:integer 非必填
 *  pageSize:'', // 	类型:integer 非必填
 *  params:'', // 	类型:object 非必填
 * @returns
 * ********
 */
export function postHmmodelDataList(data={}, config={}){
  return request({
    method: 'post',
    data,
    url: `/api/hmmodel/data/list`,
    ...config,
  }) 
}

/**
 * 详情
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * params 参数 
 * id:'', //id 必填
 * @returns
 * ********
 */
export function getHmmodelInfo(params={}, config={}){
  return request({
    method: 'get',
    params,
    url: `/api/hmmodel/info`,
    ...config,
  }) 
}

/**
 * 列表
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * params 参数 
 * modelTypes:'', //类型 非必填
 * @returns
 * ********
 */
export function getHmmodelList(params={}, config={}){
  return request({
    method: 'get',
    params,
    url: `/api/hmmodel/list`,
    ...config,
  }) 
}

/**
 * 分页列表
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * params 参数 
 * modelTypes:'', //类型 非必填
 * name:'', //模型名称 非必填
 * pageNo:'', //页码 非必填
 * pageSize:'', //每页数据条数 非必填
 * @returns
 * ********
 */
export function getHmmodelPageList(params={}, config={}){
  return request({
    method: 'get',
    params,
    url: `/api/hmmodel/page/list`,
    ...config,
  }) 
}

/**
 * 字段重复检查
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * params 参数 
 * field:'', //field 必填
 * value:'', //value 必填
 * id:'', //id 非必填
 * @returns
 * ********
 */
export function getHmmodelValidfield(params={}, config={}){
  return request({
    method: 'get',
    params,
    url: `/api/hmmodel/valid-field`,
    ...config,
  }) 
}

/**
 * 获取视图列信息
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * params 参数 
 * modelId:'', //modelId 必填
 * @returns
 * ********
 */
export function getHmmodelViewcolumn(params={}, config={}){
  return request({
    method: 'get',
    params,
    url: `/api/hmmodel/view-column`,
    ...config,
  }) 
}